//
//	CCMetalist.m
//
//	Create by 曹 曹 on 10/8/2016
//	Copyright © 2016. All rights reserved.
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "CCMetalist.h"
#import "CCList.h"

@interface CCMetalist ()
@end
@implementation CCMetalist

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<CCList *> *listArray = [NSMutableArray array];
        for (NSDictionary *dictionary in value) {
            CCList *list = [CCList modelWithDictionary:dictionary];
            [listArray addObject:list];
        }
        _list = listArray;
    }
}

@end
